home *** CD-ROM | disk | FTP | other *** search
/ Revista do CD-ROM 100 / CD-ROM 100.iso / aplic / oo1_1 / f_0328 / scalc.jar / text / scalc / guide / validity.xml < prev    next >
Encoding:
Extensible Markup Language  |  2003-04-30  |  14.3 KB  |  125 lines

  1. <?xml version="1.0" encoding="utf-8"?>
  2. <html><head><title>Validity of Cell Contents</title><meta name="filename" content="text/scalc/guide/validity"/><help:css-file-link xmlns:help="http://openoffice.org/2000/help"/><!--The CSS style header method for setting styles--><style type="text/css">
  3.  
  4.         table.Tabelle5{
  5.                 }
  6.         span.Tabelle5A{
  7.                 width:1.005cm;}
  8.         span.Tabelle5B{
  9.                 width:16.995cm;}
  10.         table.Tabelle1{
  11.                 }
  12.         span.Tabelle1A{
  13.                 width:1.005cm;}
  14.         span.Tabelle1B{
  15.                 width:16.995cm;}
  16.         td.Tabelle1A1{
  17.                 }
  18.         td.Tabelle1B1{
  19.                 }
  20.         table.Tabelle3{
  21.                 }
  22.         span.Tabelle3A{
  23.                 width:1.499cm;}
  24.         span.Tabelle3B{
  25.                 width:16.499cm;}
  26.         table.Tabelle4{
  27.                 }
  28.         span.Tabelle4A{
  29.                 width:1.501cm;}
  30.         span.Tabelle4B{
  31.                 width:16.499cm;}
  32.         tr.Tabelle41{
  33.                 }
  34.         td.Tabelle4A1{
  35.                 }
  36.         p.P1{
  37.                 }
  38.         p.P2{
  39.                 }
  40.         span.T1{
  41.                 font-weight:bold;}
  42.         span.fr1{
  43.                 }
  44.         span.fr2{
  45.                 }
  46.         span.fr3{
  47.                 }
  48.         </style></head><body>
  49.   
  50.   
  51.   <p class="P1"/>
  52.   <p class="Head1"><help:paragraphinfo state="U" number="22" xmlns:help="http://openoffice.org/2000/help"/><help:key-word value="values; limiting on input" tag="kw68144_1" xmlns:help="http://openoffice.org/2000/help"/><help:key-word value="limiting values; specifying on input" tag="kw68144_13" xmlns:help="http://openoffice.org/2000/help"/><help:key-word value="permitted cell contents; checking" tag="kw68144_12" xmlns:help="http://openoffice.org/2000/help"/><help:key-word value="cells; checking cells for validity" tag="kw68144_11" xmlns:help="http://openoffice.org/2000/help"/><help:key-word value="checking; for validity" tag="kw68144_10" xmlns:help="http://openoffice.org/2000/help"/><help:key-word value="validity; cell contents" tag="kw68144_9" xmlns:help="http://openoffice.org/2000/help"/><help:key-word value="cells; validity" tag="kw68144_8" xmlns:help="http://openoffice.org/2000/help"/><help:key-word value="error messages; defining for incorrect input" tag="kw68144_7" xmlns:help="http://openoffice.org/2000/help"/><help:key-word value="actions; defining for incorrect input" tag="kw68144_6" xmlns:help="http://openoffice.org/2000/help"/><help:key-word value="help tips; defining text for cell input" tag="kw68144_5" xmlns:help="http://openoffice.org/2000/help"/><help:key-word value="notes; help text for cells" tag="kw68144_4" xmlns:help="http://openoffice.org/2000/help"/><help:key-word value="cells; defining input help" tag="kw68144_3" xmlns:help="http://openoffice.org/2000/help"/><help:key-word value="macros; running when incorrect input" tag="kw68144_2" xmlns:help="http://openoffice.org/2000/help"/><help:to-be-embedded Eid="validity" xmlns:help="http://openoffice.org/2000/help"><help:link Id="68144">Validity of Cell Contents</help:link></help:to-be-embedded></p>
  53.   <p class="Paragraph"><help:paragraphinfo state="U" number="2" xmlns:help="http://openoffice.org/2000/help"/>For each cell, you can define in advance what type of contents is valid for that cell. This allows you to guide users through data entry in <help:productname xmlns:help="http://openoffice.org/2000/help">%PRODUCTNAME</help:productname> Calc by restricting cells to receive specific values and ranges.</p>
  54.   <p class="Paragraph"><help:paragraphinfo state="U" number="3" xmlns:help="http://openoffice.org/2000/help"/>The validity rule is activated when a new value is entered. If an invalid value has already been inserted into the cell, or if you insert a value in the cell either with drag-and-drop or by copying and pasting, the validity rule will not take effect. You can choose <span class="T1">Tools - Detective</span> at any time and choose the command <help:link Id="66908" xmlns:help="http://openoffice.org/2000/help"><span class="T1">Mark Invalid Data</span></help:link> to display which cells contain invalid values.</p>
  55.   <p class="Paragraph"><help:paragraphinfo state="U" number="4" xmlns:help="http://openoffice.org/2000/help"/>Additional details about <help:link Id="66827" xmlns:help="http://openoffice.org/2000/help">data validity</help:link> can be found in the <help:productname xmlns:help="http://openoffice.org/2000/help">%PRODUCTNAME</help:productname> Help.</p>
  56.   <p class="Head2"><help:paragraphinfo state="U" number="5" xmlns:help="http://openoffice.org/2000/help"/>Using Cell Contents Validity</p>
  57.   <table><tr class=""><td style="text-align:left;"><span class="Tabelle5A">
  58.      <p class="Paragraph"/>
  59.      <p class="Paragraph"><help:paragraphinfo state="U" number="34" xmlns:help="http://openoffice.org/2000/help"/>1.</p>
  60.     </span></td><td style="text-align:left;"><span class="Tabelle5B">
  61.      <p class="Paragraph"><help:paragraphinfo state="U" number="6" xmlns:help="http://openoffice.org/2000/help"/>Select the cells for which you want to define a new validity rule. You can select multiple cells by clicking on all the cells while holding down the <help:switch select="System" xmlns:help="http://openoffice.org/2000/help"><help:case select="MAC">Command</help:case><help:default>Ctrl</help:default></help:switch> key.</p>
  62.     </span></td></tr></table>
  63.   <table><tr class=""><td class="Tabelle1A1" style="text-align:left;"><span class="Tabelle1A">
  64.      <p class="Paragraph"><draw:image draw:name="Icon0" svg:desc="Note Icon" svg:pixelx="32" svg:pixely="32" svg:width="0.847cm" svg:height="0.847cm" xlink:href="65980" draw:filter-name="" xmlns:draw="http://openoffice.org/2000/drawing" xmlns:svg="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"/></p>
  65.  
  66.     </span></td><td class="Tabelle1B1" style="text-align:left;"><span class="Tabelle1B">
  67.      <p class="Paragraph"><help:paragraphinfo state="U" number="7" xmlns:help="http://openoffice.org/2000/help"/>The validity rule is a component of the cell format. To copy the validity rule to other cells, choose <span class="T1">Edit - Copy</span> and <span class="T1">Edit - Paste Special</span>, and select "Formats."</p>
  68.     </span></td></tr><tr class=""><td class="Tabelle1A1" style="text-align:left;"><span class="Tabelle1A">
  69.      <p class="Paragraph"/>
  70.     </span></td><td class="Tabelle1A1" style="text-align:left;"><span class="Tabelle1B">
  71.      <p class="Paragraph"><draw:image draw:name="Dialog1" svg:desc="Validity" svg:pixelx="484" svg:pixely="484" svg:width="12.801cm" svg:height="12.801cm" xlink:href="67380" draw:filter-name="" xmlns:draw="http://openoffice.org/2000/drawing" xmlns:svg="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"/></p>
  72.  
  73.     </span></td></tr><tr class=""><td class="Tabelle1A1" style="text-align:left;"><span class="Tabelle1A">
  74.      <p class="Paragraph"><help:paragraphinfo state="U" number="24" xmlns:help="http://openoffice.org/2000/help"/>2.</p>
  75.     </span></td><td class="Tabelle1A1" style="text-align:left;"><span class="Tabelle1B">
  76.      <p class="Paragraph"><help:paragraphinfo state="U" number="8" xmlns:help="http://openoffice.org/2000/help"/>Choose <span class="T1">Data - Validity</span>. The <span class="T1">Validity</span> dialog appears.</p>
  77.     </span></td></tr><tr class=""><td class="Tabelle1A1" style="text-align:left;"><span class="Tabelle1A">
  78.      <p class="Paragraph"><help:paragraphinfo state="U" number="25" xmlns:help="http://openoffice.org/2000/help"/>3.</p>
  79.     </span></td><td class="Tabelle1A1" style="text-align:left;"><span class="Tabelle1B">
  80.      <p class="Paragraph"><help:paragraphinfo state="U" number="9" xmlns:help="http://openoffice.org/2000/help"/>On the <span class="T1">Criteria</span> tab page, enter the conditions for new values entered into cells. Values you have already entered will not be affected.</p>
  81.     </span></td></tr><tr class=""><td class="Tabelle1A1" style="text-align:left;"><span class="Tabelle1A">
  82.      <p class="Paragraph"><help:paragraphinfo state="U" number="26" xmlns:help="http://openoffice.org/2000/help"/>4.</p>
  83.     </span></td><td class="Tabelle1A1" style="text-align:left;"><span class="Tabelle1B">
  84.      <p class="Paragraph"><help:paragraphinfo state="U" number="10" xmlns:help="http://openoffice.org/2000/help"/>In the <span class="T1">Allow</span> field, "All Values" is selected by default. To place a condition on a cell entry, choose from one of the other options listed.</p>
  85.     </span></td></tr><tr class=""><td class="Tabelle1A1" style="text-align:left;"><span class="Tabelle1A">
  86.      <p class="Paragraph"><help:paragraphinfo state="U" number="27" xmlns:help="http://openoffice.org/2000/help"/>5.</p>
  87.     </span></td><td class="Tabelle1A1" style="text-align:left;"><span class="Tabelle1B">
  88.      <p class="Paragraph"><help:paragraphinfo state="U" number="11" xmlns:help="http://openoffice.org/2000/help"/>This choice already sets the first condition. If you choose "Whole Numbers", values such as "12.5" are not allowed, even if they satisfy the other conditions. Choosing "Date" allows date information both in the local date format as well as in the form of a <help:link Id="66424" xmlns:help="http://openoffice.org/2000/help">serial date</help:link>. Similarly, the "Time" condition permits time values such as "12:00" or serial time numbers. "Text Length" stipulates that cells are allowed to contain text only.</p>
  89.     </span></td></tr><tr class=""><td class="Tabelle1A1" style="text-align:left;"><span class="Tabelle1A">
  90.      <p class="Paragraph"><help:paragraphinfo state="U" number="28" xmlns:help="http://openoffice.org/2000/help"/>6.</p>
  91.     </span></td><td class="Tabelle1A1" style="text-align:left;"><span class="Tabelle1B">
  92.      <p class="Paragraph"><help:paragraphinfo state="U" number="13" xmlns:help="http://openoffice.org/2000/help"/>After you have set the first condition under <span class="T1">Allow</span>, select the next condition under <span class="T1">Data</span>. According to what you choose, additional text fields (<span class="T1">Value</span>, <span class="T1">Minimum </span>and <span class="T1">Maximum</span>) may appear to further refine the condition.</p>
  93.     </span></td></tr><tr class=""><td class="Tabelle1A1" style="text-align:left;"><span class="Tabelle1A">
  94.      <p class="Paragraph"><help:paragraphinfo state="U" number="29" xmlns:help="http://openoffice.org/2000/help"/>7.</p>
  95.     </span></td><td class="Tabelle1A1" style="text-align:left;"><span class="Tabelle1B">
  96.      <p class="Paragraph"><help:paragraphinfo state="U" number="14" xmlns:help="http://openoffice.org/2000/help"/>A few possible conditions resulting from this register could be as follows: "Integer greater than 1", "Decimal between 10 and 12.5", "Date earlier than or equal to 1/1/2000", "Time not equal to 00:00", "Text with a length of more than 2 characters".</p>
  97.     </span></td></tr></table>
  98.   <p class="Paragraph"><help:paragraphinfo state="U" number="15" xmlns:help="http://openoffice.org/2000/help"/>After you have determined the conditions for cell validity, you can use the other two tabs in the dialog to create input help and error/invalid entry messages:</p>
  99.   <ul class="L1">
  100.    <li class="">
  101.     <p class="P2"><help:paragraphinfo state="U" number="16" xmlns:help="http://openoffice.org/2000/help"/>On the <span class="T1">Input Help</span> tab page, enter the title and the text of the tip, which will then be displayed if the cell is selected.</p>
  102.    </li>
  103.    <li class="">
  104.     <p class="P2"><help:paragraphinfo state="U" number="17" xmlns:help="http://openoffice.org/2000/help"/>On the <span class="T1">Error Alert</span> tab page, select the action to be carried out in the event of an error.</p>
  105.     <p class="P2"><help:paragraphinfo state="U" number="18" xmlns:help="http://openoffice.org/2000/help"/>If you select "Stop" as the action, invalid entries are not accepted, and the previous cell contents are retained.</p>
  106.     <p class="P2"><help:paragraphinfo state="U" number="19" xmlns:help="http://openoffice.org/2000/help"/>Select "Warning" or "Information" to display a dialog in which the entry can either be canceled (the cell value will be retained) or accepted (even if the new value violates the validity rule).</p>
  107.     <p class="P2"><help:paragraphinfo state="U" number="20" xmlns:help="http://openoffice.org/2000/help"/>If you select "Macro", then by using the <span class="T1">Browse</span> button you can specify a macro to be run in the event of an error.</p>
  108.    </li>
  109.   </ul>
  110.   <table><tr class=""><th style="text-align:left;"><span class="Tabelle3A">
  111.       <p class="Paragraph"><draw:image draw:name="Icon2" svg:desc="Note Icon" svg:pixelx="32" svg:pixely="32" svg:width="0.847cm" svg:height="0.847cm" xlink:href="65980" draw:filter-name="" xmlns:draw="http://openoffice.org/2000/drawing" xmlns:svg="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"/></p>
  112.  
  113.      </span></th><th style="text-align:left;"><span class="Tabelle3B">
  114.       <p class="Paragraph"><help:paragraphinfo state="U" number="35" xmlns:help="http://openoffice.org/2000/help"/>To display the error message, mark the <span class="T1">Show error message when invalid values are entered</span>. If the option is unmarked, no error message will be displayed, even with an invalid entry.</p>
  115.      </span></th></tr></table>
  116.   <help:paragraphinfo state="E" xmlns:help="http://openoffice.org/2000/help"/><help:embedded Id="66805" Eid="examplemakro" xmlns:help="http://openoffice.org/2000/help"/>
  117.   <table><tr class="Tabelle41"><th class="Tabelle4A1" style="text-align:left;"><span class="Tabelle4A">
  118.       <p class="Paragraph"><draw:image draw:name="Icon3" svg:desc="Tip Icon" svg:pixelx="32" svg:pixely="32" svg:width="0.847cm" svg:height="0.847cm" xlink:href="66732" draw:filter-name="" xmlns:draw="http://openoffice.org/2000/drawing" xmlns:svg="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"/></p>
  119.  
  120.      </span></th><th class="Tabelle4A1" style="text-align:left;"><span class="Tabelle4B">
  121.       <p class="Paragraph"><help:paragraphinfo state="U" number="21" xmlns:help="http://openoffice.org/2000/help"/>After changing the action for a cell on the <span class="T1">Error Alert</span> tab page and closing the dialog with OK, you must first select another cell before the change takes effect.</p>
  122.      </span></th></tr></table>
  123.   <p class="ParaList"><help:paragraphinfo state="S" xmlns:help="http://openoffice.org/2000/help"/><help:embedded Id="65598" Eid="related" xmlns:help="http://openoffice.org/2000/help"/></p>
  124.   <p class="ParaList"><help:paragraphinfo state="U" number="30" xmlns:help="http://openoffice.org/2000/help"/><help:link Id="66827" xmlns:help="http://openoffice.org/2000/help">Data - Validity</help:link></p>
  125.  </body></html>